<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #dj {
            background-color: red;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 20px;
        }
    </style> 
</head>

<body>
    <%# 绝对路径 %>
    <%- include('/test') %>
   
    <%# 相对路径 %>
    <%- include('./yoyo') %>
        <h1>
            <%= yoyo %>
        </h1>
        <h2>
            <%= new Date().toString() %>
        </h2>

        <button id="dj">点击事件测试</button>

        <script>
            document.getElementById('dj').onclick = function () {
                alert('我被点击了')
            }
        </script>
</body>

</html>